<?php
	require_once '../libs/app.config.php';
	require_once INCLUDE_PATH.'template.config.php';
	require_once 'head.php';
	$charset?null:$charset='cn';
	$cat_name = 'ABOUTUS';
	$cat_name = $tpm->escape($cat_name);
	$charset  = $tpm->escape($charset);
	$sql ="select a.* from articles a,article_cat ac where a.cat_id=ac.id and a.type='$charset' and ac.cat_name like '$cat_name%'";
	$query = $tpm->query($sql);
	$news = $tpm->fetch_array($query);
//print_r($news);exit();
	$tpl->assign("news",$news);
	$src = $$cat_name;
	$src = $src['content'];
//	print_r($src);exit();
	$tpl->assign("src",$src);
	if($charset=='en'){
		$tpl->display("about_en.html");
	}else{
		$tpl->display("about_cn.html");
	}
?>